<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1/ZBZphp/wowsai/Static/index/css/index.css"/>
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1/ZBZphp/wowsai/Static/hdjs/hdjs.css"/>
		<link rel="stylesheet" type="text/css" href="http://127.0.0.1/ZBZphp/wowsai/Static/index/css/hover-min.css"/>
		<script type="text/javascript" src="http://127.0.0.1/ZBZphp/wowsai/Static/index/js/jquery-1.11.3.min.js"></script>
		<script type="text/javascript" src="http://127.0.0.1/ZBZphp/wowsai/Static/index/js/index.js"></script>
		<script type="text/javascript" src="http://127.0.0.1/ZBZphp/wowsai/Static/index/js/common.js"></script>
		<script type="text/javascript" src="http://127.0.0.1/ZBZphp/wowsai/Static/hdjs/hdjs.min.js"></script>
		<script type="text/javascript">
			var loUserUrl='<?php echo U("Index/Login/ajaxCheckLoginUser");?>';
			var loPwdUrl='<?php echo U("Index/Login/ajaxCheckLoginPwd");?>';
		</script>
		<script type="text/javascript" src="http://127.0.0.1/ZBZphp/wowsai/Static/index/js/loginAjax.js"></script>
		<!--<script type="text/javascript">
			$(function(){
				$('#loginForm').validate({
					//username_reg是input的name名称
					username: {
						//规则
		                rule: {
		                    required: true,
		                    ajax:{url:'<?php echo U("Login/ajaxCheckLoginUser");?>'},
		                    //php中要写$msg = array('status'=>false,'message'=>'用户名已存在');
		                    //$msg=array('status' =>true,'message'=>'验证通过');
		                },
		                //违反规则之后
		                error: {
		                    required: '用户名不能为空',
		                },
		                //验证成功之后
		                success: '验证通过',
		            },
		            password: {
						//规则
		                rule: {
		                    required: true,
		                    ajax:{url:'<?php echo U("Login/ajaxCheckLoginPwd");?>'},
		                    //php中要写$msg = array('status'=>false,'message'=>'用户名已存在');
		                    //$msg=array('status' =>true,'message'=>'验证通过');
		                },
		                //违反规则之后
		                error: {
		                    required: '密码不能为空',
		                },
		                //验证成功之后
		                success: '验证通过',
		            },
				})
			})
		</script>-->
	</head>
	<body>
		<div class="erweima" style="display: none;">
			<div class="ewm"></div>
		</div>
		<div class="top" style="display: none;"></div>
		<!--登录开始-->
		<div id="loginZhezhao"></div>
		<div id="login">
			<div class="loginTop">
				<div class="loginTip">
					登录哇噻网
				</div>
				<div class="loginClose"></div>
			</div>
			<div class="loginMain">
				<form action="<?php echo U('Login/login');?>" method="post" id="loginForm">
					<p class="myWasai">
						<label for="user">用户：</label>
						<input type="text" name="username" id="user" placeholder="请登录用户名"/>
						<!--<span>&nbsp;&nbsp;用户不存在</span>-->
					</p>
					<p class="myWasai">
						<label for="pwd">密码：</label>
						<input type="password" name="password" id="pwd" placeholder="请输入密码"/>
					</p>
					<span class="rember">
						<input type="checkbox" name="auto" id="remberMe" />
						<label for="remberMe">记住我一周(在公共场所请慎用此功能)</label>
					</span>
					<dl class="loginBtn">
						<dt>
							<input type="submit" value="登录"/>
						</dt>
						<dd>
							<a href="javascript:;">忘记密码?</a>
						</dd>
						<dd>
							<a class="qqlogin" href="<?php echo U('Login/qqlogin');?>"></a>
						</dd>
					</dl>
				</form>
			</div>
			<div class="clear"></div>
			<div class="loginDash">
				<p class="registerNow">
					还没有哇噻网帐号？
					<a href="<?php echo U('Login/register');?>">立即注册</a>
				</p>
			</div>
		</div>
		<!--头部开始-->
		<div class="header">
			<!--头部的登录\注册\购物车-->
			<div class="header_top">
				    <?php if(!$_SESSION['uid']||!$_SESSION['uname']){ ?>
				<div class="headerLogin">
					<a href="javascript:;" class="login">登录</a>
					<a href="<?php echo U('Login/register');?>" class="register">注册</a>
				</div>
				<?php }else{ ?>
				<div class="myself">
					<a href="<?php echo U('Myself/index');?>"><?php echo $hd['session']['uname'];?></a>
					<a href="<?php echo U('Login/out');?>">退出</a>
				</div>
				<?php } ?>
				<div class="headerCart">
					<a href="<?php echo U('Carter/index');?>">购物车<span><?php echo $totalNum;?></span>件</a>
				</div>
				<div class="logo">
					
				</div>
			</div>
			<!--头部导航-->
			<div class="header_bottom">
				<ul class="nav_left">
					<li class="index"><a href="http://127.0.0.1/ZBZphp/wowsai"></a></li>
					        <?php
        //初始化
        $hd['list']['t'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($topCate)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($topCate as $t) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=5)break;
                //第几个值
                $hd['list'][t]['index']++;
                //第1个值
                $hd['list'][t]['first']=($listId == 0);
                //最后一个值
                $hd['list'][t]['last']= (count($topCate)-1 <= $listId);
                //总数
                $hd['list'][t]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
						    <?php if($hd['list']['t']['last']){ ?>
						<li style=" border-right: 1px solid #F0F0F0;"><a href="<?php echo U('List/index',array('cid'=>$t['cid']));?>"><?php echo $t['cname'];?></a></li>
						<?php }else{ ?>
							<li><a href="<?php echo U('List/index',array('cid'=>$t['cid']));?>"><?php echo $t['cname'];?></a></li>
						<?php } ?>
					<?php }}?>
				</ul>
				<!--搜索框-->
				<div class="search">
					<form action="" method="post">
						<input type="text" placeholder="请输入要搜索的关键词" id="" name="search" class="search-box"/>
						<input type="submit" value="" id="search"/>
					</form>
				</div>				
				<ul class="nav_right">
					<li><a href="javascript:;">动态</a></li>
					<li style=" border-right: 1px solid #F0F0F0;"><a href="javascript:;">海报</a></li>
				</ul>
			</div>
			<!--头部导航结束-->
		</div>
		